﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ch4_
{
    class Program
    {
        static void Main(string[] args)
        {
            People p = new People("雪容融");
            Boyfriend bf = new Boyfriend("冰墩墩",30);
            Father f = new Father("小头爸爸","动画片监制人");
            
            bf.showSelf();
            f.showSelf();

            p.showSelf();
            People.showImportantInformation(p);
            p.showSelf();

            int x = 1;
            int y = 2;

            Console.WriteLine("x = {0},y={1}", x, y);
            int result = People.plus(ref x, ref y);
            Console.WriteLine("x = {0},y={1}", x, y);



            People.showImportantInformation(bf);
            People.showImportantInformation(f);

            Console.Read();
        }
    }
}
